package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.CompanyDao;
import com.oscarmovie.model.Company;

public class CompanyServiceImpl implements CompanyService{
	private CompanyDao companyDao;

	public void setCompanyDao(CompanyDao companyDao) {
		this.companyDao = companyDao;
	}

	public CompanyDao getCompanyDao() {
		return companyDao;
	}

	
	public void save(Company company) {
		companyDao.save(company);
	}

	
	public Company load(int id) {
		Company company =  companyDao.load(id);
		return company;
	}

	
	public List<Company> loadAll() {
		return companyDao.loadAll();
	}
}
